package com.health.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 预约表
 * </p>
 *
 * @author health
 * @since 2023-04-17
 */
@Getter
@Setter
@TableName("appointment_setting")
@ApiModel(value = "AppointmentSetting对象", description = "预约表")
public class AppointmentSetting implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("序号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("0 挂号 1 预约")
    private Integer type;

    @ApiModelProperty("1～5 工作日 6～7节假日 8 法定工作日")
    private Integer date;

    @ApiModelProperty("创建时间")
    private String startTime;

    @ApiModelProperty("结束时间")
    private String endTime;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("逻辑删除")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
